package com.lyk.coursearrange.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyk.coursearrange.entity.Job;
import com.lyk.coursearrange.entity.Lessonschedule;
import com.lyk.coursearrange.entity.dto.JobDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface JobDao extends BaseMapper<Job> {
    List<Job> joblist(@Param("job_name")String jobName,@Param("page") Long offset,@Param("limit") Long limit);

    Long jobcount(@Param("job_name")String jobName);

    JobDto jobdetails(@Param("job_id") Long job_id);

    void deletebyjobasle(@Param("job_id") Long jobId);

    void deletelebyjobid(@Param("job_id") Long jobId);


    void insertjobasle(@Param("job_id") Long jobId,@Param("le_id") Long leId);

    Long selectjobname(@Param("job_name") String job_name);
}
